package com.zhangye.test.mapper;

import com.zhangye.test.model.ScanCount;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ScanCountMapper {

	int deleteByPrimaryKey(Long id);

    int insert(ScanCount record);

    ScanCount selectByPrimaryKey(Long id);

    List<ScanCount> selectAll();

    int updateByPrimaryKey(ScanCount record);

    List<ScanCount> selectByWhere(@Param("where")String where);
    
    int deleteByWhere(@Param("where") String where);

    List<Map<String,Object>> selectByCounts(@Param("where")String where);
}